package com.darren.framework.service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.darren.framework.dao.ProvinceDao;
import com.darren.framework.entity.Province;
import com.darren.framework.service.ProvinceService;
import com.darren.framework.utils.Constant;

/**
 * <pre>
 * *********************************************
 * Copyright DARREN
 * All rights reserved.
 * Description: TODO(description)
 * HISTORY:
 * *********************************************
 *  Version		Date		Author	   		Desc	
 *   v1.0       2018-05-21  Darren Zhou    Create

 * *********************************************
 * </pre>
 */

@Service
public class ProvinceServiceImpl extends GenericServiceImpl<Province,Long> implements ProvinceService{
	
	@Autowired
	protected ProvinceDao provinceDao;
	
	@Override
	@Cacheable(value = Constant.CACHE_PLACES)
	public List<Province> getAll(){
		return provinceDao.getAll();
	}
	
	
}
